const { createUser } = require('../service/user.service')
class UserController {
  async register(ctx, next) {
    ctx.body = '用户注册成功'
  }

  async login(ctx, next) {
    ctx.body = '登录成功'
    const res = await createUser('xiaoming', 123456)
    ctx.body = res
  }
}

module.exports = new UserController()